home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Mac Magazin/MacEasy 11
/
Mac Magazin and MacEasy Magazine CD - Issue 11.iso
/
Sharewarebibliothek
/
Entwickler
/
CDEF-DeBugger 2.0 ƒ
/
String.c
< prev
next >
Wrap
Text File
|
1995-05-31
|
346b
|
19 lines
// Quick utility to turn a text string into a num and visa versa
// include files
#include <ToolUtils.h>
void NumToString( long theNum, Str255 theString);
void NumToString(long theNum, Str255 theString)
{
short x;
for( x=1; x<=theString[0]; x++ )
{
theString[x] -= 0x30;
}
BlockMove( &theString[1], &theNum[0], theString[0] );
}